//
//  LogoutAlertView.m
//  yjw-winner
//
//  Created by 隆霁 on 2018/9/20.
//  Copyright © 2018年 Shanghai decade financial information service co., LTD. All rights reserved.
//

#import "LogoutAlertView.h"

@interface LogoutAlertView () {}
@property (weak, nonatomic) IBOutlet UIView *maskView;
@property (nonatomic, copy) CallBackCellSettingBlock block;
@end
@implementation LogoutAlertView

+ (LogoutAlertView *)alert {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([LogoutAlertView class]) owner:self options:nil] lastObject];
}
- (void)settingCallbackBlock:(CallBackCellSettingBlock)block {
    self.block = block;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.maskView.layer.masksToBounds = YES;
    self.maskView.layer.cornerRadius = 4.0f;
}
#pragma mark --mark


- (IBAction)cancelButtonClick:(UIButton *)sender {
    if (self.block) {
        self.block(SettingButtonTypeCancel);
    }
}
- (IBAction)logoutButtonClick:(UIButton *)sender {
    if (self.block) {
        self.block(SettingButtonTypeSure);
    }
}

@end
